<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>ces</title>
		<link rel="stylesheet" type="text/css" href="../layui/css/layui.css"/>
	</head>
	<body>
		<form class="layui-form" action="" onsubmit="return false">
		  <div class="layui-form-item">
		    <label class="layui-form-label">输入框</label>
		    <div class="layui-input-block">
		      <input type="text" name="ppoun" required  lay-verify="required" placeholder="请输入输入框内容" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">密码框</label>
		    <div class="layui-input-block">
		      <input type="password" name="8urmf" required  lay-verify="required" placeholder="请输入密码框内容" autocomplete="off" class="layui-input">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">复选框</label>
		    <div class="layui-input-block">
		      <input type="checkbox" name="ocrh[]" title="写作">
		      <input type="checkbox" name="ocrh[]" title="阅读" checked>
		      <input type="checkbox" name="ocrh[]" title="发呆">
		    </div>
		  </div>
		  <div class="layui-form-item layui-form-text">
		    <label class="layui-form-label">文本域</label>
		    <div class="layui-input-block">
		      <textarea name="ijo9n" placeholder="请输入内容" class="layui-textarea"></textarea>
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <div class="layui-input-block">
		      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
		      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		  </div>
		</form>
		
		<script src="../layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
		<script>
		  layui.use('form', function(){
		    var form = layui.form;
		    form.on('submit(formDemo)', function(data){
		      layer.msg(JSON.stringify(data.field));
		      return false;
		    });
		  });
		</script>
	</body>
</html>
